From: Nikos Mavrogiannopoulos Date: Mon, 19 Jan 2015 17:24:48 +0000 (+0100) Subject: luci-app-ocserv: express PKID in a way that is acceptable by openconnect X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=d3104487b4e467fed62423f993dfba028dc325fb;p=project%2Fluci.git luci-app-ocserv: express PKID in a way that is acceptable by openconnect Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua index d354cf6445..23f6f5c84c 100644 --- a/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua +++ b/applications/luci-app-ocserv/luasrc/model/cbi/ocserv/main.lua @@ -42,7 +42,7 @@ if fd then local ln found_pki = true elseif found_pki then local hash = ln:match("([a-f0-9]+)") - o_pki.default = hash and hash:upper() + o_pki.default = hash and "sha1:" .. hash:upper() complete = complete + 1 found_pki = false end